<template>
  <div id='list'>
    <slot>
    </slot>

  </div>
</template>

<script>
export default {
  name: 'list',
  data() {
    return {}
  },
  props: {},
  components: {},
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>

<style scoped lang='less'>
#list {
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  h4 {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
  .message {
    width: 100%;
    height: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    div {
      flex: 6;
      .icon {
        width: 16%;
        height: 3rem;
        vertical-align: middle;
        margin-right: 0.4rem;
        text-align: center;
        line-height: 3rem;
      }
      .messageinfo {
        width: 64%;
        display: inline-block;
        height: 3rem;
        vertical-align: middle;
        margin-right: 0.4rem;
        font-size: 0.8rem;
        text-align: left;
        span {
          display: block;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
        .user {
          color: rgb(105, 105, 105);
          font-size: 0.6rem;
        }
        .time {
          color: rgba(26, 144, 255, 0.8);
          font-weight: 600;
        }
        h4 {
          display: inline-block;
          text-align: left;
          margin-top: 0;
        }
      }
    }
    button {
      margin-top: 1rem;
      flex: 1;
      vertical-align: middle;
      line-height: 0;
      font-size: 0.8rem;
      outline: none;
      border: none;
      background-color: rgba(26, 144, 255, 0.8);
      color: #fff;
      width: 14%;
      height: 1.2rem;
      margin-right: 0.4rem;
      padding: 0.1rem;
      box-sizing: border-box;
    }
  }
}
</style>
